<?php
require("func.php");
error_reporting(E_ALL);
ini_set('display_errors', '1');
if(!isset($_GET['index']))
exit();
//120.194.2.110
$i=$_GET['index'];
$where='chk_send=1 order by id limit '.($i*10).",10";
	$db=new db_class();
	$r=$db->db_select('xp_se_weather_user','phone',$where);
	for($i=0;$i<count($r);$i++)
	{
		$s=$db->db_select('xp_se_weather_user','phone','phone=\''.$r[$i]['phone'].'\' and chk_send=1 and send_date<>'."'".date('Y-m-d')."'");
		if(count($s)!=0)
		{
			//echo $r[$i]['phone'].'<br/>';
			SendWeather($r[$i]['phone']);
		}
	}
if(count($r))
echo count($r);
?>